<?php

namespace app\mobile\controller;

use app\common\controller\Frontend;
use think\Db;
use think\Request;

class Article extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    
	
	public function detail(Request $request){
		$id=$request->param('banner_id/d',0);
		$rs=Db::name('banner')->where(['id'=>$id])->order('weigh desc')->find();
		if(is_null($rs)){
			$this->error('内容不存在');
		}
		$this->assign('rs',$rs);
		return $this->view->fetch();
	}

}
